package com.silver.weibo.server.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.silver.weibo.dao.UserMapper;
import com.silver.weibo.entity.Users;
import com.silver.weibo.entity.vo.ViewBloggerVO;
import com.silver.weibo.server.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, Users> implements UserService {


    private final UserMapper userMapper;

    @Autowired
    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public ViewBloggerVO selectBloggerById(Integer id) {
        return userMapper.selectBloggerById(id);
    }
}
